package com.naiterui.ehp.bs.file;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.naiterui.common.redis.config.EnableRedisAutoConfiguration;
import com.naiterui.common.repository.core.BaseMongoRepositoryImpl;

/**
 * 项目启动类
 * 
 * @author yangfuya
 * @since 2021/9/9
 */
@EnableWebMvc
@EnableFeignClients
@EnableRedisAutoConfiguration
@EnableAsync
@ComponentScan("com.naiterui")
@EntityScan("com.naiterui")
@SpringBootApplication
@EnableMongoRepositories(basePackages = {"com.naiterui.ehp.bs.file.repository"},
    repositoryBaseClass = BaseMongoRepositoryImpl.class)
public class FileServer {
    public static void main(String[] args) {
        SpringApplication.run(FileServer.class, args);
    }
}
